import Vue from 'vue'
import App from './App.vue'
import router from './router'
// 导入axios
import axios from 'axios'
// 手动配置 element-ui
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// 配置字体图标
import './assets/fonts/iconfont.css'
// 配置全局样式
import './assets/css/global.css'
// 全局配置表格树形插件
import TreeTable from 'vue-table-with-tree-grid'

// 挂载axios
Vue.prototype.axios = axios
// 挂载ElementUI
Vue.use(ElementUI)
// 挂载树形表格
Vue.component('tree-table', TreeTable)

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
